package EventSourcing;

import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class BoundButton implements BoundListener{

	ImageButton ib; 
	public BoundButton(ImageButton ib) {
		this.ib = ib;
	}

	public void boundReached() {
		ib.setEnabled(false);
		
	}

	public void boundLeft() {
		ib.setEnabled(true);
	}

	public void setOnClickListener(OnClickListener onClickListener) {
		ib.setOnClickListener(onClickListener);
	}

	public boolean isReached() {
		return ib.isEnabled();
	}

}
